package guowenlong.golf.ui.friend.myfriends;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import butterknife.BindView;
import butterknife.OnClick;
import de.hdodenhof.circleimageview.CircleImageView;
import guowenlong.golf.R;
import guowenlong.golf.ui.personal.achievement.AchievementActivity;
import guowenlong.golf.ui.personal.history.HistroryActivity;
import guowenlong.golf.ui.personal.info.PersonalInfomationActivity;
import me.wenlong.mixutils.mvp.BaseActivity;

/**
 * des   : 描述
 * author: Administrator
 * email : guowenlong20000@gmail.com
 * time  : 2017年03月27日 下午 1:12.
 */

public class MyFriendInfoActivity extends BaseActivity {

  @BindView(R.id.tv_back)
  TextView tvBack;
  @BindView(R.id.civ_userhead)
  CircleImageView civUserhead;
  @BindView(R.id.ll_userinfo)
  LinearLayout llUserinfo;
  @BindView(R.id.ll_achievement_myfriend)
  TextView llAchievementMyfriend;
  @BindView(R.id.ll_history_myfriend)
  TextView llHistoryMyfriend;
  @BindView(R.id.btn_add_friend)
  Button btnAddFriend;

  @Override
  protected int getContentView(Bundle savedInstanceState) {
    return R.layout.activity_myfriend_info;
  }

  @Override
  protected void initView(Bundle savedInstanceState) {

  }

  @Override
  protected void initData() {

  }

  @OnClick({R.id.tv_back, R.id.ll_userinfo, R.id.ll_achievement_myfriend, R.id.ll_history_myfriend,
      R.id.btn_add_friend})
  public void onClick(View view) {
    switch (view.getId()) {
      case R.id.tv_back:
        finish();
        break;
      case R.id.ll_userinfo:
        startActivity(new Intent(this, PersonalInfomationActivity.class));
        break;
      case R.id.ll_achievement_myfriend:
        startActivity(new Intent(this, AchievementActivity.class));
        break;
      case R.id.ll_history_myfriend:
        startActivity(new Intent(this, HistroryActivity.class));
        break;
      case R.id.btn_add_friend:
        Toast.makeText(this,"添加好友成功",Toast.LENGTH_SHORT).show();
        finish();
        break;
    }
  }
}
